package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.MaterialConvolutionDao;
import com.liuxinlong.modules.entity.MaterialConvolution;
import com.liuxinlong.modules.mapper.MaterialConvolutionMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 物料成本卷积dao实现
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023年5月16日
 */
@Service
public class MaterialConvolutionDaoImpl extends ServiceImpl<MaterialConvolutionMapper, MaterialConvolution> implements MaterialConvolutionDao {

    @Override
    public List<MaterialConvolution> pageConvolutionList(Map<String, Object> queryParam) {
        return baseMapper.pageConvolutionList(queryParam);
    }

    @Override
    public int getConvolutionCount(Map<String, Object> queryParam) {
        return baseMapper.getConvolutionCount(queryParam);
    }

    @Override
    public int getOngoingConvolution(String materialNo, String region,String operateUser) {
        return baseMapper.getOngoingConvolution(materialNo,region,operateUser);
    }

    @Override
    public int getIllegalConvolution(String materialNo, String region, String operateUser) {
        return baseMapper.getIllegalConvolution(materialNo,region,operateUser);
    }
}
